how find highest valued element of map